@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main {
  min-height: 100%
}

.app-container {
  padding: 20px;
}

.bg-gray{
  background-color: $gray;
}

// 分页
.pagination {
  .header {
    padding: 15px 0;
    flex-wrap: wrap;
    position: relative;
    min-height: 80px;
    .fixed-right {
      position: absolute;
      right: 0;
    }
  }
  .search-input {
    width: 240px;
  }
}

// 提示框
.el-alert{
  padding: 0 16px;
}

// 分页栏
.el-pagination{
  padding-top: 20px;
}

// form表单
.el-form-item__label {
  padding-right: 30px;
}

// 图片上传
.avatar-uploader {
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    .avatar {
      width: 178px;
      height: 178px;
      display: block;
    }
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 178px;
      height: 178px;
      line-height: 178px;
      text-align: center;
    }
  }
  .el-upload:hover {
    border-color: #409EFF;
  }
}

.content-edit {
  margin: 0 auto;
  max-width: 800px;
}

body .el-table th.gutter{
  display: table-cell!important;
}

.el-tag{
  cursor: pointer;
}

.cursor-pointer{
  cursor: pointer;
}

// 备注
.remarks{
  font-size: 13px;
  color: $textB7;
  .symbol{
    font-size: 18px;
    color: red;
    margin-right: 5px;
  }
}

// 上传图片备注
.image-box {
  display: flex;
  flex-direction: row;

  .image-remark {
    flex: 1;
    padding: 10px 20px;

    div {
      line-height: 26px;
    }
  }

}

// layout
@mixin flex-row($row:center,$col:center) {
  display: flex;
  flex-direction: row;
  align-items: $row;
  justify-content: $col;
}
.flex-row{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.margin-right-10{
  margin-right: 20px;
}

.margin-right-20{
  margin-right: 20px;
}

.margin-top-10{
  margin-top: 10px;
}

.margin-top-20{
  margin-top: 20px;
}

.margin-left-20{
  margin-left: 20px;
}
